/**
 * MessageToast 组件样式
 * 提供消息提示框的完整样式，包括不同类型的消息、动画效果、响应式设计等
 */
export const styles = `
/* 消息提示容器 - 固定定位在页面右上角 */
.message-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
}

.message-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 480px;
    padding: 16px;
    background: var(--sl-color-neutral-0);
    border: 1px solid var(--sl-color-neutral-200);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.message-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.message-toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.toast-icon sl-icon {
    font-size: 20px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--sl-color-neutral-900);
}

.toast-message {
    font-size: 13px;
    line-height: 1.5;
    color: var(--sl-color-neutral-700);
    word-wrap: break-word;
}

.toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-top: 2px;
}

.toast-close:hover {
    background-color: var(--sl-color-neutral-100);
}

.toast-close sl-icon {
    font-size: 14px;
    color: var(--sl-color-neutral-500);
}

/* 不同类型的样式 */
.message-toast.success {
    border-left: 4px solid var(--sl-color-success-600);
}

.message-toast.success .toast-icon {
    color: var(--sl-color-success-600);
}

.message-toast.warning {
    border-left: 4px solid var(--sl-color-warning-600);
}

.message-toast.warning .toast-icon {
    color: var(--sl-color-warning-600);
}

.message-toast.error {
    border-left: 4px solid var(--sl-color-danger-600);
}

.message-toast.error .toast-icon {
    color: var(--sl-color-danger-600);
}

.message-toast.info {
    border-left: 4px solid var(--sl-color-primary-600);
}

.message-toast.info .toast-icon {
    color: var(--sl-color-primary-600);
}

/* 进度条动画 */
.message-toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--sl-color-neutral-300);
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform linear;
}

.message-toast.success::after {
    background: var(--sl-color-success-600);
}

.message-toast.warning::after {
    background: var(--sl-color-warning-600);
}

.message-toast.error::after {
    background: var(--sl-color-danger-600);
}

.message-toast.info::after {
    background: var(--sl-color-primary-600);
}

.message-toast.with-progress::after {
    transform: scaleX(1);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .message-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .message-toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .message-toast {
        background: var(--sl-color-neutral-900);
        border-color: var(--sl-color-neutral-700);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .toast-title {
        color: var(--sl-color-neutral-100);
    }
    
    .toast-message {
        color: var(--sl-color-neutral-300);
    }
    
    .toast-close:hover {
        background-color: var(--sl-color-neutral-800);
    }
    
    .toast-close sl-icon {
        color: var(--sl-color-neutral-400);
    }
}
`;